;;; compiled by jwz@thalidomide on Thu Jul 2 16:35:11 1992
;;; from file /u/jwz/emacs19/lisp/packages/ftp.el
;;; emacs version 19.2.1 Lucid.
;;; bytecomp version 2.07; 17-jun-92.
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs18.
(if (and (boundp 'emacs-version)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19")))
(error "This file was compiled for Emacs19."))
(byte-code "└┴┬├#ê└─┬├#ê└┼┬├#ç" [put ftp-temp-file-name permanent-local t ftp-file ftp-host] 4)
(defvar ftp-password-alist nil "\
Security sucks")
(byte-code "└┴Mê┬├Mç" [read-ftp-user-password #[(host user new) "└\n¼¢<½ù─\"Aë½Ä½ç @ÿ½â ¬▐¼á<½ê─\"A@«é╟ ╚╔╩ #!ë╦ܽâ ╚╔╠#<¼â╦¬Æ─\"AA«è╬╧ì)«ü╦\"B╨╦!ê<½î A╦ÿ¼å BB )ç" [nil tem new ftp-password-alist assoc host user user-login-name read-string format "User-name for %s (default \"%s\"): " "" "Password for %s@%s: " l foo (byte-code "½ÿ@A@ ÿ½è┬├@AA\"ê¬kAë¼h─ç" [l user throw foo nil] 4) message] 7] ftp-read-file-name #[(prompt) "└┬├ \"¼ç─ \"¬s ╞ö╞òO ╟ö╟òO)Dç" ["" s string-match "\\`[ ]*\\([^ :]+\\)[ ]*:\\(.+\\)\\'" read-string prompt 1 2] 4]] 2)
(fset 'ftp-find-file #[(host file &optional user password) "└ \n├%ç" [ftp-find-file-or-directory host file t user password] 6 "\
FTP to HOST to get FILE, logging in as USER with password PASSWORD.
Interactively, HOST and FILE are specified by reading a string with
a colon character separating the host from the filename.
USER and PASSWORD are defaulted from the values used when
last ftping from HOST (unless password-remembering is disabled).
Supply a password of the symbol `t' to override this default
(interactively, this is done by giving a prefix arg)" (byte-code "└┴┬!├??D\"ç" [append ftp-read-file-name "FTP get host:file: " nil current-prefix-arg] 4)])
(fset 'ftp-list-directory #[(host file &optional user password) "└ \n├%ç" [ftp-find-file-or-directory host file nil user password] 6 "\
FTP to HOST to list DIRECTORY, logging in as USER with password PASSWORD.
Interactively, HOST and FILE are specified by reading a string with
a colon character separating the host from the filename.
USER and PASSWORD are defaulted from the values used when
last ftping from HOST (unless password-remembering is disabled).
Supply a password of the symbol `t' to override this default
(interactively, this is done by giving a prefix arg)" (byte-code "└┴┬!├??D\"ç" [append ftp-read-file-name "FTP get host:directory: " nil current-prefix-arg] 4)])
FTP to HOST to write FILE, logging in as USER with password PASSWORD.
Interactively, HOST and FILE are specified by reading a string with colon
separating the host from the filename.
USER and PASSWORD are defaulted from the values used when
last ftping from HOST (unless password-remembering is disabled).
Supply a password of the symbol `t' to override this default
(interactively, this is done by giving a prefix arg)" (byte-code "└┴┬!├??D\"ç" [append ftp-read-file-name "FTP write host:file: " nil current-prefix-arg] 4)])
(byte-code "└┴Mê┬├Mê─┼Mê╞╟Mê╚╔Mê╩╦Mê╠═Mê╬╧Mê╨╤Mê╥╙Mê╘╒Mç" [ftp-setup-buffer #[(host file) "└ ê┴p!½ú┬ ê├─┼╞┴p!!╟p!#!½ì┴p!½î╚┴p!!ê¬s╔╩!ê╦═ ê╬╧!ê╬╤!êp╘╒╓p╓╫╪┘&ç" [fundamental-mode get-buffer-process discard-input y-or-n-p format "Kill process \"%s\" in %s? " process-name buffer-name kill-process error "Foo" nil buffer-read-only erase-buffer make-local-variable ftp-host host ftp-file file foo3 t start-process "ftp" "-i" "-n" "-g"] 7] ftp-login #[(process host user password) "└┴\n#ê─╞╟\n$╔╩$½é╦ç╠═!!ê╬!ê<½ï╨╤\"\"╥ç" [message "FTP logging in as %s@%s..." user host ftp-command process format "open %s\nuser %s %s\n" password "230.*\n" "\\(Connected to \\|220\\|331\\|Remote system type\\|Using.*mode\\|Remember to set\\).*\n" t switch-to-buffer process-buffer delete-process ftp-password-alist delq assoc nil] 7] ftp-command #[(process command win ignore) "└ \n\"ê├º½╝┼!½êdbê╟ë¬o┼╚!½å╔òbê¬c┼\n!½à├yê¬X╦╠═╟#¼î`═╬╧Åêbê¬E═ë¬A)ç" [process-send-string process command 1 p looking-at win t "^ftp> \\|^\n" 0 ignore search-forward "\n" nil (accept-process-output process) ((error))] 5] ftp-asynchronous-input-sentinel #[(process msg) "└ \n├ë$ç" [ftp-sentinel process msg t] 5] ftp-synchronous-input-sentinel #[(process msg) "└ \n├─$ç" [ftp-sentinel process msg nil t] 5] ftp-asynchronous-output-sentinel #[(process msg) "└ \n├─$ç" [ftp-sentinel process msg t nil] 5] ftp-synchronous-output-sentinel #[(process msg) "└ \n├ë$ç" [ftp-sentinel process msg nil] 5] ftp-sentinel #[(process msg asynchronous input) "└┴\n!!¼à├\n─\"ç┼\n!╞=â└ ╟\n!╚Uâ└ è┴\n!qê─ ½â╩¬ü╦─dbê╧╨!ê╤!½ä╧╨!ê`╙╘ ½â╒¬ü╓$┘─┌#½ë█╚ö╚ò{P¬ü▄Pd|êè▌▐!qê─▀▒ê, ¼ï─αßÅêΓp!ê¬úπ╙Σ#!%└%!Γ%!ê%µ%!êτ─!êΦ ê))¡ëΩδ\"ê∞φ!+ç┼\n!ε>¡╜è┴\n!qê╙∩└p!#─dbê▀ë▒ê)≡1!ê▌▐!qê─dbêcê)≥ ¡à≤δ\")ç" [buffer-name process-buffer process set-process-buffer nil process-status exit process-exit-status 0 input "[0-9]+ bytes received in [0-9]+\\.[0-9]+ seconds.*$" "[0-9]+ bytes sent in [0-9]+\\.[0-9]+ seconds.*$" r msg buffer-read-only search-backward "226 " looking-at p format "ftp %s %s:%s done" "read" "write" ftp-host ftp-file re-search-forward t ": " "" get-buffer-create "*ftp log*" 10 (byte-code "└┴!½ç ½ä┬ !ê└ç" [boundp ftp-temp-file-name delete-file] 2) ((error)) kill-buffer generate-new-buffer "%s:%s (ftp)" kludge rename-buffer set-buffer-modified-p ftp-setup-write-file-hooks asynchronous message "%s" sleep-for 2 (exit signal) "Ftp died (buffer %s): %s" delete-process proc waiting-for-user-input-p error] 5] ftp-setup-write-file-hooks #[nil "┬└!ê├─\")┬┼!ê╞╟╟╔╩p!!P╠ëç" [write-file-hooks hooks make-local-variable append (ftp-write-file-hook) revert-buffer-function ftp-revert-buffer "/tmp/" default-directory make-temp-name buffer-name buffer-file-name nil buffer-read-only] 4] ftp-write-file-hook #[nil "└ \n\"─┼\"ê╞╟ \n#ê╚!╔=½ç╩╦╠Åê¬r═╩!ê╞╬ \n#ê)╧ç" [ftp-write-file ftp-host ftp-file process set-process-sentinel ftp-synchronous-output-sentinel message "FTP writing %s:%s..." process-status run nil (accept-process-output process) ((error)) set-buffer-modified-p "FTP writing %s:%s...done" t] 4] ftp-revert-buffer #[(&rest ignore) "└ \n\"─┼\"ê╞╟ \n#ê╚!╔=½ç╩╦╠Åê¬r╚!═=½ï╬!╧U½ä╨╩!ê╞╤!)ç" [ftp-find-file ftp-host ftp-file process set-process-sentinel ftp-synchronous-input-sentinel message "FTP reverting %s:%s" process-status run nil (accept-process-output process) ((error)) exit process-exit-status 0 set-buffer-modified-p "Reverted"] 4]] 2)